<%@page import="com.mmy.domain.car.TCarBase"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/include1.jsp"></jsp:include>
<title>车辆信息</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>车辆信息</h2>			
		</div>
	</header>
	<section class="container">
			<div>
				<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3); margin: 15px; " width=100%; color=#F9F6E5 SIZE=3></hr>
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>车辆详细信息
						</h4>
				<div >
				<table class="info-table" >
					
				<tr>
					<th>车公司名称</th>
					<td>
						<input type="hidden" name="CarID"  value="${vCarBase.getCarID()}" >
						${vCarBase.getOrgName()}
					</td>
					<th>车型名称</th>
					<td>
						${vCarBase.getTypeName()}
					</td>
				</tr>
				<tr>
					<th>车牌号</th>
					<td>
						${vCarBase.getCarNum()}
					</td>
					<th>品牌</th>
					<td>
						${vCarBase.getCarBrand()}
					</td>
				</tr>
				<tr>
					<th>司机姓名</th>
					<td>
						${vCarBase.getDriverName()}
					</td>
					<th>电话</th>
					<td>
						${vCarBase.getDriverPhone()}
					</td>
				</tr>
				<tr>
					<th>三年无事故</th>
					<c:choose>
						     <c:when test="${vCarBase.getSafeYear() == 0}">
						           <td>无</td>
						     </c:when>
						    <c:otherwise>
						         <td>有</td>
						    </c:otherwise>
						</c:choose>
					<th>保险</th>
					<td>
						${vCarBase.getCarSafe()}
					</td>
				</tr>
				<tr>
					<th>使用年限</th>
					<td>
						${vCarBase.getCarYear()}
					</td>
					<th>马力</th>
					<td>
						${vCarBase.getPower()}
					</td>
				</tr>
				<tr>
					<th>车辆图片</th>
					<td >
						${vCarBase.getPhotoPath()}
					</td>
				</tr>	
				<tr>
					<th>备注</th>
					<td colspan="3">
						${vCarBase.getMemo()}
					</td>
				</tr>			
				</table>			
				</div>
				
				<center>
					<input type="button" class="btn" value="预约" onclick="location.href='reservecar?iCarID=${vCarBase.getCarID()}'">
					<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 
				
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>